home *** CD-ROM | disk | FTP | other *** search
/ PC Media 23 / PC MEDIA CD23.iso / share / prog / gapcdr1 / gapcdr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-03  |  8.0 KB  |  159 lines

  1. /*
  2.    Copyright (C) 1988-1994 The GAP Development Company
  3.  
  4.    All Rights Reserved
  5.    
  6.    This source code is considered to be confidential information proprietary
  7.    to The GAP Development Company.  It is prohibited and punishable by law
  8.    to use or duplicate any part of this information.
  9.  
  10.  
  11.    GAPCDR.H
  12.  
  13.    Header file for GAPCDR modules
  14.  
  15.    Defines external declarations and includes gastruc.h which defines
  16.    global structures and function prototypes.
  17.  
  18. */
  19.  
  20. #if !defined(__GAPCDR_H__)
  21.    #define __GAPCDR_H__
  22.  
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif 
  26.  
  27. #include "gapstruc.h"
  28.  
  29.    /*********************************************************************/
  30.    /*  Variables initialized by reading DOOR.SYS                        */
  31.    /*********************************************************************/
  32.  
  33.    extern short didrip;                   // true if RIP file displayed
  34.    extern short interface;                // 0=Standard,1=Digi Direct,2=Int14/EBIOS
  35.    extern short digiseg;                  // DigiBoard Memory Window
  36.    extern short digiport;                 // DigiBoard I/O Port
  37.    extern short digichnl;                 // DigiBoard Channel
  38.    extern short multi;                    // 1 = system is multi-user
  39.    extern short local;                    // 0 = remote user, 1 = local user  
  40.    extern short port;                     // com port being used              
  41.    extern short parity;                   // actually data bits, not used     
  42.    extern short node;                     // node number in use, 0 = single   
  43.    extern short screen;                   // 0 = screen off, 1 = screen on    
  44.    extern short printer;                  // 0 = printer off, 1 = printer on  
  45.    extern short bell;                     // 0 = page bell off, 1 = bell on   
  46.    extern short alarm;                    // 0 = caller alarm off, 1 = on     
  47.    extern short level;                    // user's security level            
  48.    extern short minsleft;                 // minutes left at door start       
  49.    extern short color;                    // 0 = no color, 1 = color          
  50.    extern short page;                     // page length                      
  51.    extern short expert;                   // 0 = novice, 1 = expert           
  52.    extern short realcredit;               // real time credits
  53.    extern short dflt_color;               // BBS default color
  54.    extern short maxfiles;                 // Max files available
  55.    extern short curfiles;                 // Current files downloaded
  56.  
  57.    extern long userbaud;                  // remote user's bps rate           
  58.    extern long baud;                      // DTE bps rate                     
  59.    extern long timeson;                   // # of times on                    
  60.    extern long recnum;                    // user's record number             
  61.    extern long uploads;                   // total number of uploads          
  62.    extern long downloads;                 // total number of downloads        
  63.    extern long curbytes;                  // current download bytes             
  64.    extern long maxbytes;                  // max bytes can download           
  65.    extern long doors_open;                // Total doors opened
  66.    extern long mesleft;                   // Total messages left
  67.    extern long upbytes;                   // total upload bytes               
  68.    extern long downbytes;                 // total download bytes             
  69.  
  70.    extern char username   [];             // user's full name                 
  71.    extern char fname      [];             // user's first name                
  72.    extern char lname      [];             // user's last name                 
  73.    extern char city       [];             // user's home town                 
  74.    extern char hphone     [];             // user's home phone number         
  75.    extern char bphone     [];             // user's business phone number     
  76.    extern char password   [];             // user's password                  
  77.    extern char lastdate   [];             // last date user was on            
  78.    extern char subscrip   [];             // date user's subscription expires 
  79.    extern char handle     [];             // caller's Handle
  80.    extern char event_time [];             // event run time
  81.    extern char last_new   [];             // last new files scan
  82.  
  83.  
  84.    /********************************************************************/
  85.    /*  global variables                                                */
  86.    /********************************************************************/
  87.  
  88.    extern char hasrip;                    // true if has RIP capability
  89.    extern char noup;                      // if 1, dont uppercase characters     
  90.    extern char redisplay;                 // true if wants to start over         
  91.    extern char usemore1;                  // true if showing a file              
  92.    extern char view;                      // true if want a more prompt          
  93.    extern char endview;                   // true if dont want to see any more   
  94.    extern char NS;                        // true if in Non Stop mode            
  95.    extern char instatus;                  // if doing status line,bypas our BIOS 
  96.    extern char chat;                      // true if chatting with user          
  97.    extern char wordwrap;                  // column to wrap at                   
  98.    extern char column;                    // column we are at now                
  99.    extern char flag;                      // flag that a space was pressed       
  100.    extern char clockon;                   // 0 no clock, 1 display clock
  101.  
  102.    extern short timeleft;                 // time user has left                  
  103.    extern short lines;                    // # of lines currently displayed
  104.    extern short irq;                      // IRQ for port
  105.    extern short base_add;                 // base address for port
  106.    extern short timecredit;               // any time credits user may have
  107.    extern short _near normal;             // current display color
  108.    extern short _near crscur;             // current cursor pos
  109.  
  110.    extern char anystring   [];            // global garbage collector            
  111.    extern char maindir     [];            // path to the BBS main dir            
  112.    extern char gendir      [];            // path to the BBS gen dir             
  113.    extern char sysname     [];            // sysop's name                        
  114.    extern char strtime     [];            // holds the time string               
  115.    extern char curtime     [];            // holds the current time as a string  
  116.    extern char bbs_dir     [];            // path to BBS default dir             
  117.    extern char board_name  [];            // name of the BBS                     
  118.    extern char birthday    [];            // caller's birth date
  119.    extern char _near useridx [];          // user's index key (must be near)
  120.  
  121.    extern long temptime;                  // for calculating time out            
  122.    extern long timenow;                   // long integer for current time       
  123.    extern long starttime;                 // long integer for time door opened   
  124.  
  125.    // structures
  126.  
  127.    extern struct GAP_USER  __near user;
  128.    extern struct PCBSYS14  __near pcbsys;
  129.    extern struct PCBUSER14 __near pcbuser;
  130.  
  131.  
  132.    extern char  TEXTRIP  [];
  133.    extern char  RIPRESET [];
  134.    extern char  BS [];
  135.    extern char  CRLF [];
  136.  
  137.    extern char  A_BLACK [];               // ANSI color strings                  
  138.    extern char  A_RED [];
  139.    extern char  A_GREEN [];
  140.    extern char  A_BROWN []; 
  141.    extern char  A_BLUE [];
  142.    extern char  A_MAGENTA []; 
  143.    extern char  A_CYAN [];
  144.    extern char  A_WHITE [];
  145.    extern char  A_BBLACK [];
  146.    extern char  A_BRED [];
  147.    extern char  A_BGREEN [];
  148.    extern char  A_YELLOW [];
  149.    extern char  A_BBLUE [];
  150.    extern char  A_BMAGENTA [];
  151.    extern char  A_BCYAN [];
  152.    extern char  A_BWHITE [];
  153.  
  154. #ifdef __cplusplus
  155. }
  156. #endif 
  157.  
  158. #endif                                    // __GAPCDR_H__ defined
  159.